<div class="users form">
{{if $current_action=='admin_add'}}
<?php 
echo $this->MForm->create($current_model,array(    
	'url' => array('action' => 'add'),
));
?>
{{elseif $current_action=='admin_edit'}}
 <?php 
echo $this->MForm->create($current_model,array(
    'url' => array('action' => 'edit',$id,$copy),
));
?>
{{/if}}
    <fieldset>
    {{if $current_action=='admin_add'}}
    	{{$this->MForm->input('id',array('type'=>'number','after'=>'留空时，将自动生成编号'))}}
    {{else}}
    	{{$this->MForm->input('id')}}
    {{/if}}
    <?php
    	echo $this->MForm->hidden('is_virtual',array('value'=>1));
        echo $this->MForm->input('name');
        echo $this->MForm->input('alias');
echo $this->MForm->input('group');

echo $this->MForm->input('price');
echo $this->MForm->input('max_upload_size');
echo $this->MForm->input('total_upload_size');
echo $this->MForm->input('wx_nums');
echo $this->MForm->ckeditor('content');
?>
    </fieldset>
    <div class="form-group">
		<label class="col-sm-2 control-label" for="ProductName"></label>
		<div class="col-sm-9"><input class="btn btn-primary" type="submit" value="{{__('Submit')}}"></div>
	</div>
<?php echo $this->MForm->end();?>
</div>